<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>设置</title>
    <link rel="stylesheet" href="../../css/base.css">
    <link rel="stylesheet" href="../../css/YJJ/Set.css">
</head>
a

<body>
    <header>
        <div class="backBox">
            <img class='backBtn' src="../../img/icon/back.png" alt="">
            <span>设置</span>
        </div>
        <div class='setBtn'>
            <img src="../../img/icon/more function.png" alt="">
        </div>
    </header>
    <div class="contentBox" >
    <ul class="content">
        <a href="">
            <li class="user">
                <div>
                    <img src="../../img/icon/用户头像.png" alt="">
                </div>
                <div class="userBox">
                    <span class="username">JD开始AM</span>
                    <span class="accountNum">账号:dsa1d5sa1d231</span>
                </div>
                <div>
                    <img style="display: none;" src="../../img/icon/right_arrow.png" alt="">
                </div>
            </li>
        </a>
        <a href="../YJJ/userInf.html">
            <li>
                <div class="x">
                    <span>账号信息</span>
                    <img src="../../img/icon/right_arrow.png" alt="">
                </div>
            </li>
        </a>
        <a href="../YJJ/Address.html">
            <li>
                <div class="x">
                    <span> 收货地址</span>
                    <img src="../../img/icon/right_arrow.png" alt="">
                </div>
            </li>
        </a>
        </ul>
    </div>
    <footer>
        <div>切换账户</div>
        <div class="outLogin">退出登录</div>
    </footer>
</body>
<script>
    let outLoginEl = document.querySelector('.outLogin')
    outLoginEl.onclick = function(){
        localStorage.setItem("token", null)
    }
    let backEl = document.querySelector('.backBtn');
    backEl.addEventListener("click", function(e){
        if(e.target.tagName == 'SPAN' || e.target.tagName == 'IMG'){
            location.href = '../LXW/personal.html';
        }
    })
</script>
</html>